// import request from "../request.js"

// function indexBannerApi(){
// 	return request({
// 		url:"/lejuClient/home/bannerAds"
// 	})
// }

// export {
// 	indexBannerApi
// }


import {requester} from "../request.js"

// 调用首页轮播接口
function indexBannerApi(){
	return requester({
		url:"/lejuClient/home/bannerAds"
	})
}
// 调用首页分类接口
function inisHomeFenLei(id){
	return requester({
		url:`/lejuClient/productCategory/findCategory/${id}`
	})
}
// 调用限时广告接口
function inisadverdList(){
	return requester({
		url:"/lejuClient/home/recommendList"
	})
}
// 调用热门推荐接口
function inisHostList(){
	return requester({
		url:'/lejuClient/home/hotList'
	})
}
// 调用新品推荐接口
function inisNewList(start,limit){
	return requester({
		url:`/lejuClient/home/latestProducts/${start}/${limit}`
	})
}
// 猜你喜欢
function inislikeList(){
	return requester({
		url:'/lejuClient/home/saleMostProducts'
	})
}


export {
	indexBannerApi,
	inisHomeFenLei,
	inisadverdList,
	inisHostList,
	inisNewList,
	inislikeList
}